<!DOCTYPE HTML>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport"
        content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>账单新增</title>
    <link rel="stylesheet" type="text/css" href="../css/aui.css" />
    <link rel="stylesheet" type="text/css" href="../css/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="css/comm.css" />
    <link rel="stylesheet" type="text/css" href="../script/mui/mui.picker.min.css" />
    <link rel="stylesheet" type="text/css" href="../script/mui/mui.reset.css" />
    <link rel="stylesheet" type="text/css" href="css/form.css" />
    <link rel="stylesheet" type="text/css" href="css/editStyle.css" />
    <style type="text/css">
        .aui-list .aui-list-item-label-icon {
            padding-right: 0;
        }

        .aui-list .aui-list-item-input label {
            margin-right: 10px;
        }

        .aui-btn-primary {
            background: #01B2F5;
            width: 95%;
            left: 2.5%;
            bottom: 0.5rem;
            border-radius: 5px;
        }

        .aui_formcontent {
            text-align: right;
        }

        .mask_bg {
            position: fixed;
            z-index: 9999;
            background: rgba(0, 0, 0, 0.3);
            top: 0;
            bottom: 0;
            left: 0;
            right: 0;
        }

        .choose_box {
            position: fixed;
            z-index: 10000;
            background: #fff;
            top: 10%;
            bottom: 10%;
            left: 5%;
            right: 5%;
            border-radius: 5px;
        }

        .choose_box .close_btn {
            position: absolute;
            top: 10px;
            right: 20px;
            z-index: 10002;
        }

        .choose_box .close_btn .iconfont {
            font-size: 1rem;
            color: #888;
        }

        .choose_room_title {
            position: relative;
            text-align: center;
            line-height: 2.4rem;
            font-size: 0.8rem;
            border-bottom: solid 0.5px #eee;
        }

        .choose_room_content {
            margin: 28px 8px 20px 8px;
            position: absolute;
            top: 2rem;
            bottom: 20px;
            left: 20px;
            right: 20px;
            overflow: scroll;
            z-index: 10001;
        }

        .choose_room_item {
            position: relative;
            padding-left: 20px;
            padding-bottom: 20px;
        }

        .choose_room_item input[type='radio'] {
            position: absolute;
            top: 7px;
            left: 0;
        }

        .choose_room_item label {
            line-height: 1.5rem;
            padding-left: 10px;
            font-size: 0.75rem;
        }
    </style>
</head>

<body>
    <div id="app" v-cloak>
        <div class="mask_bg" v-on:click="doCloseMask()" v-if="IsMaskOpen"></div>
        <div class="choose_box" v-if="IsChooseRoom">
            <span class="close_btn" v-on:click="doCloseMask()">
                <i class="icon iconfont icon-guanbi"></i>
            </span>
            <div class="choose_room_title">选择关联房间
            </div>
            <div class="choose_room_content">
                <div v-on:click="doSelectRoom(item)" class="choose_room_item" v-for="item in roomList">
                    <input v-bind:checked="item.isSelected" type="radio" class="aui-radio" />
                    <label>{{item.name}}</label>
                </div>
            </div>
        </div>
        <div class="choose_box" v-if="IsChooseCharge">
            <span class="close_btn" v-on:click="doCloseMask()">
                <i class="icon iconfont icon-guanbi"></i>
            </span>
            <div class="choose_room_title">选择收费项目
            </div>
            <div class="choose_room_content">
                <div v-on:click="doSelectCharge(item)" class="choose_room_item" v-for="item in chargeList">
                    <input v-bind:checked="item.isSelected" type="radio" class="aui-radio" />
                    <label>{{item.name}}</label>
                </div>
            </div>
        </div>
        <div class="boxarea edit">
            <div class="">
                <div class="aui_formitem">
                    <div class="aui_formtitle">资源位置<img class="col-star" src="../image/redstar.png"></div>
                    <div class="aui_formcontent" v-on:click="do_choose_room()">
                        <input class="choose" :readonly="true" v-model="form.fullName">
                        <i class="icon iconfont icon-xiangyoujiantou"></i>
                    </div>
                </div>
                <div class="aui_formitem">
                    <div class="aui_formtitle">收费项目<img class="col-star" src="../image/redstar.png"></div>
                    <div class="aui_formcontent" v-on:click="do_choose_charge()">
                        <input class="choose" :readonly="true" v-model="form.chargeName">
                        <i class="icon iconfont icon-xiangyoujiantou"></i>
                    </div>
                </div>
                <div class="aui_formitem">
                    <div class="aui_formtitle ">单价</div>
                    <div class="aui_formcontent">
                        <input class="choose" type="number" placeholder="请输入" v-model="form.unitPrice">
                    </div>
                </div>
                <div class="aui_formitem">
                    <div class="aui_formtitle ">面积/用量</div>
                    <div class="aui_formcontent">
                        <input class="choose" type="number" placeholder="请输入" v-model="form.useCount">
                    </div>
                </div>
                <div class="aui_formitem">
                    <div class="aui_formtitle ">应收金额<img class="col-star" src="../image/redstar.png"></div>
                    <div class="aui_formcontent">
                        <input class="choose" type="number" placeholder="请输入" v-model="form.totalCost">
                    </div>
                </div>
                <div class="aui_formitem">
                    <div class="aui_formtitle ">计费周期</div>
                    <div class="aui_formcontent">
                        <span v-on:click="do_select_time(1)" class="choose new-span-input"
                            v-bind:class="{'textColorPlaceholder':form.startTime==''}">{{form.startTime==''?'请选择':form.startTime}}</span>
                        至
                        <span v-on:click="do_select_time(2)" class="choose new-span-input"
                            v-bind:class="{'textColorPlaceholder':form.endTime==''}">{{form.endTime==''?'请选择':form.endTime}}</span>
                    </div>
                </div>
                <div class="aui_formitem block" style="border-bottom: none;">
                    <div class="aui_formtitle">备注</div>
                    <div class="aui_formcontent" style="padding-left: 0px;">
                        <textarea placeholder="请填写" v-model="form.remark" style="height: 4rem;"></textarea>
                    </div>
                </div>
            </div>
        </div>
        <div class="bottom">
            <div v-if="!submiting" class="aui_bottombtn" v-on:click="do_save()">保存</div>
            <div v-if="submiting" class="aui_bottombtn">保存中...</div>
        </div>
    </div>
</body>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript" src="../script/aui-toast.js"></script>
<script type="text/javascript" src="../script/config.js"></script>
<script type="text/javascript" src="../script/common.js"></script>
<script type="text/javascript " src="../script/vue.js "></script>
<script type="text/javascript " src="js/chargeroomfee_add.js"></script>

</html>